package com.cloudfast.platform.region.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cloudfast.entity.BaseEntity;
import com.cloudfast.repository.annotation.DeleteField;
import com.cloudfast.repository.annotation.SelfGradeCode;

import lombok.Getter;
import lombok.Setter;

/**
 * @author liuyw
 * @描述: 行政区域
 * @date 2020年4月30日
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "sys_region_city")
@Getter
@Setter
public class RegionCity extends BaseEntity {

    @Id
    private Long regionCode;

    private String regionName;

    private String parentCode;

    @SelfGradeCode(fileEntity = "gradeCode", parentKey = "parent_code")
    private String gradeCode;

    private String regionType;

    private String regionid;

    private String longitude;

    private String latitude;

    private String py;

    private String parentName;

    /**
     * 是否不可见;顶级
     **/
    private String isAdmin = "0";

    /**
     * 删除的状态
     */
    @DeleteField
    private String delFlag = "0";

    // 省份简称
    private String simpleName;

    // 地市车牌标识
    private String carNoSign;

}
